<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ShopNC后台管理系统</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE2 {font-size: 12}
.STYLE3 {
	color: #333333;
	font-weight: bold;
}
.STYLE7 {font-size: 12; color: #333333; font-weight: bold; }
.STYLE10 {color: #717171; font-weight: bold; }
-->
</style>
<smart>include file ='sys_head_config.html'</smart>
<script language="javascript" src="../js/show_dialog.js" type="text/javascript"></script>
<script language="javascript" src="../js/system/attribute.js" type="text/javascript"></script>
</head>
<body>
<div id="ceng">
<smart>include file ='sys_header.html'</smart>
<div id="main" style="height:auto">
  <div id="welcome">
    <p>欢迎您进入ShopNC后台管理系统！</p>
　　　　
通过后台管理系统，您可以轻松管理商铺相关、查询信息,ShopNC为您打造方便、快捷的后台管理系统！     </div>
  <em>后台管理系统</em>
  <div id="main-left">
    <div id="product-type">
      <p>商品分类</p>
      <div id="select"> <smart> $slPCategory </smart><br />
        （提示：通过选择此处的商品分类对分类下的属性进行管理） </div>
		
		    
    </div>
    <smart> if $pc_id != 0 </smart>

		<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:10px; border:1px solid #b0b0b0" >
      <form action="attribute.manage.php?action=add" name="addAttribute" method="post">
        <tr >
          <td height="24" colspan="2" bgcolor="#DBE6DE" style="border-bottom:1px solid #b0b0b0"><span class="STYLE3">　增加此分类的新属性</span></td>
        </tr>
        <tr >
          <td height="30" align="center" valign="bottom" bgcolor="#F7FFF7"><span class="STYLE10">属性名称</span></td>
          <td height="30" align="left" valign="bottom" bgcolor="#F7FFF7"><input type="text" name="txtAname">
            *</td>
        </tr>
        <tr >
          <td height="24" align="center" valign="bottom" bgcolor="#F7FFF7"><span class="STYLE10">属性类型</span></td>
          <td height="24" align="left" valign="bottom" bgcolor="#F7FFF7"><input type="radio" name="txtAtype" value="0" checked="checked">仅单选  <input type="radio" name="txtAtype" value="1">可多选  *</td>
        </tr>
        <tr >
          <td height="24" align="center" valign="bottom" bgcolor="#F7FFF7"><span class="STYLE10">属性排序</span></td>
          <td height="24" align="left" valign="bottom" bgcolor="#F7FFF7"><input type="text" name="txtAorder" value="0">
            *</td>
        </tr>
        <tr >
          <td height="24" align="center" valign="bottom" bgcolor="#F7FFF7"><span class="STYLE10">属性说明</span></td>
          <td height="24" align="left" valign="bottom" bgcolor="#F7FFF7"><input type="text" name="txtAinfo" value=""></td>
        </tr>
        <tr >
          <td height="30" bgcolor="#F7FFF7">&nbsp;</td>
          <td height="30" bgcolor="#F7FFF7"><input name="submit" type="submit" value=" <smart> $langbtnASubmit </smart> "></td>
        </tr>
        <input type="hidden" name="txtApcid" value="<smart> $pc_id </smart>" />
      </form>
    </table>
	 <smart> /if </smart>
   
    <div id="product-about">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC" style=" padding-bottom:10px">
        <tr bgcolor="#FFFFFF">
          <td height="24" align="center" valign="middle" bordercolor="0" bgcolor="#DBE6DE" style=" line-height:24px"><span class="STYLE7">删</span></td>
          <td width="20%" height="24" align="center" valign="middle" bordercolor="0" bgcolor="#DBE6DE"style=" line-height:24px"><span class="STYLE7">属性名称</span></td>
          <td width="20%" height="24" align="center" valign="middle" bordercolor="0" bgcolor="#DBE6DE"style=" line-height:24px"><span class="STYLE7">属性类型</span></td>
          <td width="15%" height="24" align="center" valign="middle" bordercolor="0" bgcolor="#DBE6DE"style=" line-height:24px"><span class="STYLE7">属性排序</span></td>
          <td height="24" colspan="2" align="center" valign="middle" bordercolor="0" bgcolor="#DBE6DE"style=" line-height:24px"><span class="STYLE7">属性说明</span></td>
          </tr>
        <smart> section name=i loop=$attribute_array </smart>
        <form name="update<smart> $attribute_array[i].a_id </smart>" action="attribute.manage.php?action=update" method="post">
          <tr bgcolor="#FFFFFF" style="border:1px solid #CCCCCC">
            <td width="10%" height="40" align="center" valign="middle"><input name="txtAid2" type="checkbox" value="<smart> $attribute_array[i].a_id </smart>" /></td>
            <td width="10%" height="40" align="center" valign="middle"><input name="txtAname" type="text" value="<smart> $attribute_array[i].a_name </smart>" size="8" /></td>
            <td height="40" align="left" valign="middle">
			
			<span class="STYLE2">
			<table width="80%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
  <tr>
    <td align="right" valign="bottom" bgcolor="#FFFFFF" >仅单选</td>
    <td width="5" height="20" align="left" valign="middle" bgcolor="#FFFFFF"><input type="radio" name="txtAtype" value="0" <smart> if $attribute_array[i].a_type == 0 </smart> checked="checked" <smart> /if </smart> /></td>
  </tr>
  <tr>
    <td align="right" valign="bottom" bgcolor="#FFFFFF">可多选</td>
    <td width="5" height="20" align="left" valign="middle" bgcolor="#FFFFFF">	<input type="radio" name="txtAtype" value="1" <smart> if $attribute_array[i].a_type == 1 </smart> checked="checked" <smart> /if </smart>></td>
  </tr>
</table>

			
			
		</span></td>
            <td width="15%" height="40" align="center" valign="middle"><input name="txtAorder" type="text" value="<smart> $attribute_array[i].a_order </smart>" size="8" /></td>
            <td height="40" align="center" valign="middle"><input name="txtAinfo" type="text" value="<smart> $attribute_array[i].a_info </smart>" /></td>
            <td height="40" align="center" valign="middle"><input name="update" type="submit" value="保存"></td>
          </tr>
          <input name="txtupdateAid" value="<smart> $attribute_array[i].a_id </smart>" type="hidden" />
        </form>
        <smart> /section </smart>
        <form name="delAttribute" action="attribute.manage.php?action=del" method="post" id="delAttribute">
          <tr bgcolor="#FFFFFF">
            <td colspan="6" align="center"><input name="delbutton" type="button" onclick="javascript:delAtt()" value="删除" /></td>
          </tr>
        </form>
      </table>
	    <div style="clear:both"></div>
    </div>
	
	<div id="product-Attribute">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC">
      <tr bgcolor="#FFFFFF">
        <td width="23%" height="24" align="center" valign="middle" bgcolor="#DBE6DE"><span class="STYLE3">属性名称</span></td>
        <td width="56%" height="24" align="center" valign="middle" bgcolor="#DBE6DE"><span class="STYLE3">属性内容展示</span></td>
        <td width="21%" height="24" bgcolor="#DBE6DE"></td>
      </tr>
      <smart> section name=j loop=$attribute_array </smart>
      <form name="update<smart> $attribute_array[j].a_id </smart>" action="attribute.manage.php?action=update" method="post">
        <input name="txtAid" value="<smart> $attribute_array[j].a_id </smart>" type="hidden" />
        <tr bgcolor="#FFFFFF">
          <td height="40" align="center" valign="middle"><smart> $attribute_array[j].a_name </smart></td>
          <td height="40" align="left" valign="middle"><smart> if $attribute_array[j].a_type == 0 </smart>
            <select name="attribute_content">
              <option value=""></option>
              <smart> section name=k loop=$attribute_content_array[j] </smart>
              <option value="<smart> $attribute_content_array[j][k].ac_content </smart>"><smart> $attribute_content_array[j][k].ac_content </smart></option>
              <smart> /section </smart>
            </select>
            <smart> /if </smart><smart> if $attribute_array[j].a_type == 1 </smart><smart> section name=k loop=$attribute_content_array[j] </smart>
            <input name="chx_content" type="checkbox" value="">
            <smart> $attribute_content_array[j][k].ac_content </smart> <smart> /section </smart><smart> /if </smart></td>
          <td height="40" align="left" valign="middle"><input name="addAttribute" type="button" value="管理属性内容" onclick="this.blur();manage_ac('<smart> $attribute_array[j].a_id </smart>','<smart> $attribute_array[j].a_name </smart>');return false;"></td>
        </tr>
      </form>
      <smart> /section </smart>
    </table>
	  <div style="clear:both"></div>
	</div>
	
    <pre id="contentDIV" style="display:none"></pre>
    <div id="product-help" style="background-image:none; height:189px">
      <p>这是啥内容呢~待定……</p>
    </div>
  </div>
  	<smart>include file ='sys_right_help.html'</smart>
  <div style="clear:both"></div>
</div>
<smart> include file ='sys_footer.html' </smart>
</div>
</body>
</html>
